<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加/编辑管理员 - Powered By LIUSANY</title>
</head>
<body class="input admin">
	<div class="body">
		<form:form id="inputForm" modelAttribute="group" action="${ctx}/admin/group/save/${group.id}" method="post">
		<input type="hidden" name="id" value="${group.id}"/>
		<fieldset>
			<p>
				<label for="loginName">名称:</label>
				<input type="text" id="name" name="name" size="40" value="${group.name}"/>
			</p>
			<p>
				<label for="loginName">权限列表:</label>
				<form:checkboxes path="permissionList" items="${allPermissions}" itemLabel="displayName" itemValue="value" />
			</p>	
		</fieldset>
		<p>
			<input class="button" type="submit" value="提交"/>&nbsp;	
			<input class="button" type="button" value="返回" onclick="history.back()"/>
		</p>
	</form:form>
	</div>
</body>
</html>